package com.fire.eyes.model;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;

/**
 * <p>
 * 推荐规则表
 * </p>
 *
 * @author zhongzifeng123
 * @since 2018-09-18
 */
@TableName("t_mit_recommend_rule")
public class RecommendRule extends Model<RecommendRule> {

    private static final long serialVersionUID = 1L;

    /**
     * 推荐序列号(index)/RMD+goodsid/RMD+channelid
     */
    @TableId
    private String rmdid;
    /**
     * 01:基于商品层面的推荐 02:基于渠道层面的推荐
     */
    private String type;
    /**
     * 创建时间
     */
    private Date createtime;
    /**
     * 更新时间
     */
    private Date updatetime;
    /**
     * 推荐标题
     */
    private String title;
    /**
     * 推荐内容描述
     */
    private String descriptor;
    /**
     * 推荐图片
     */
    private String pic;
    /**
     * 推荐链接
     */
    private String link;
    /**
     * 预留字段1
     */
    private String extra1;
    /**
     * 预留字段2
     */
    private String extra2;


    public String getRmdid() {
        return rmdid;
    }

    public void setRmdid(String rmdid) {
        this.rmdid = rmdid;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public Date getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(Date updatetime) {
        this.updatetime = updatetime;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getDescriptor() {
        return descriptor;
    }

    public void setDescriptor(String descriptor) {
        this.descriptor = descriptor;
    }

    public String getPic() {
        return pic;
    }

    public void setPic(String pic) {
        this.pic = pic;
    }

    public String getLink() {
        return link;
    }

    public void setLink(String link) {
        this.link = link;
    }

    public String getExtra1() {
        return extra1;
    }

    public void setExtra1(String extra1) {
        this.extra1 = extra1;
    }

    public String getExtra2() {
        return extra2;
    }

    public void setExtra2(String extra2) {
        this.extra2 = extra2;
    }

    @Override
    protected Serializable pkVal() {
        return this.rmdid;
    }

    @Override
    public String toString() {
        return "RecommendRule{" +
        "rmdid=" + rmdid +
        ", type=" + type +
        ", createtime=" + createtime +
        ", updatetime=" + updatetime +
        ", title=" + title +
        ", descriptor=" + descriptor +
        ", pic=" + pic +
        ", link=" + link +
        ", extra1=" + extra1 +
        ", extra2=" + extra2 +
        "}";
    }
}
